const app = getApp()
Page({
    data: {
        navTitle: "食材百科书",
        dishName: "香菇",
        otherName: "别名：冬菇、香菌、爪菰、花菇、香蕈、香菰、香信",
        dishHeatNum: "26",
        unitHeatText: "每100克(可食用部分)",
        heatComparedNum: "86%",
        dish_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_mushroom.png",
        icon_next_page: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_next_page.png",
        nutritionText: "1.香菇含丰富的维生素D原，但维生素C甚少，又缺乏维生素A及A原。\n" +
                       "2.菇蛋白质里包含18种氨基酸，人体必须的8种氨基酸里，香菇就占了7种，并且多属L型氨基酸，活性高，易被人体吸收，消化率高达80%。\n" +
                       "3.香菇里含有大量谷氨酸和通常食物里罕见的伞菌氨酸、口蘑氨酸和鹅氨酸等，所以风味尤其鲜美。\n",
        efficacyText: "香菇性味甘、平、凉；归胃经。有补肝肾、健脾胃、益气血、益智安神、美容颜之功效。还可化痰理气，益胃和中，解毒，抗肿瘤，托痘疹。主治食欲不振、身体虚弱、小便失禁、大便秘结、形体肥胖、肿瘤疮疡等病症。\n" +
                      "1.提高机体免疫功能。香菇多糖可提高小鼠腹腔巨噬细胞的吞噬功能，还可促进T淋巴细胞的产生，并提高T淋巴细胞的杀伤活性。\n" +
                      "2.延缓衰老。香菇的水提取物对过氧化氢有清除作用，对体内的过氧化氢有一定的消除作用。\n" +
                      "3.防癌抗癌。香菇中含有的另外一种化合物——香菇嘌呤(也称赤酮嘌呤)可以降低胆固醇的水平。香菇含有的抗氧化剂含量是麦芽的12倍，是鸡肝的4倍。与松茸蘑菇和灰树花(又名贝叶多孔菌，俗称云蕈、栗蘑、莲花菌)相比，它的降低血压和抵御癌症的功效更强。\n" +
                      "4.降血压、降血脂、降胆固醇香菇中含有嘌呤、胆碱、酪氨酸、氧化酶以及某些核酸物质，能起到降血压、降胆固醇、降血脂的作用，又可预防动脉硬化、肝硬化等疾病。\n" +
                      "5.治疗疾病香菇还对糖尿病、肺结核、传染性肝炎、神经炎等起治疗作用，又可用于消化不良、便秘等。\n",
        forPeople: "一般人群均可食用。 贫血者、抵抗力低下者、高血脂患者、高血压患者、动脉硬化患者、糖尿病患者、癌症患者、肾炎患者食用。",
        nutritionShow: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_nutrient.png",
        selectionSkill: "香菇以香味浓郁、肉质厚实、表面平滑、大小均匀的为佳。色 泽黑褐色或黄褐色，菇面稍带白霜，菇褶紧实细白，柄短而粗。 长得特别大的香菇最好不要吃，有可能是激素催肥的。",
        // screenHeight: app.globalData.systemInfo.screenHeight,
        // windowHeight: app.globalData.systemInfo.windowHeight,
        // kMarginTop: app.globalData.navigationBarHeight,
        // navBarHeight: app.globalData.navigationBarHeight,
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

        var that = this;
        var evalItem = [
            {
                evalText: "相对较低"
            },
            {
                evalText: "相对一般"
            },
            {
                evalText: "相对较高"
            }
        ]
        var bloodDataList = [
            {
                name: "GL值",
                num: "60.0",
                evalResult: "低GL",
                sugarStatus: "sugar_lower"
            },
            {
                name: "GL值",
                num: "70.0",
                evalResult: "中GL",
                sugarStatus: "sugar_middle"
            },
            {
                name: "GL值",
                num: "80.0",
                evalResult: "高GL",
                sugarStatus: "sugar_higher"
            }
        ]

        var recommendRecipes = [
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_chocolat.png",
                name: "巧克力蛋糕"
            },
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_charlotteframb.png",
                name: "水果蛋糕"
            },
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_fraisier.png",
                name: "草莓蛋糕"
            },
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_tart_fruits.png",
                name: "香菇蛋糕"
            },
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_chocolat.png",
                name: "香菇蛋糕"
            },
            {
                recipesBanner: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_chocolat.png",
                name: "香菇蛋糕"
            }
        ]

        that.setData({
            evalItem: evalItem,
            bloodDataList: bloodDataList,
            recommendRecipes: recommendRecipes
        })
    },

    onShow: function() {

    },

})
